.class public Les/bj;
.super Lcom/estrongs/android/ui/dialog/q;
.source "FileOverwriteOptionDialog2.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/bj$g;
    }
.end annotation


# static fields
.field public static f:I = 0x0

.field public static g:I = 0x1

.field public static h:I = 0x2

.field public static i:I = 0x3

.field public static j:I = 0x4


# instance fields
.field private a:Landroid/view/View;

.field private b:I

.field private c:Les/bj$g;

.field private d:Landroid/widget/CheckBox;

.field private e:Z


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lcom/estrongs/fs/g;Lcom/estrongs/fs/g;Les/bj$g;ZZZ)V
    .locals 4

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    .line 2
    sget v0, Les/bj;->g:I

    iput v0, p0, Les/bj;->b:I

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Les/bj;->c:Les/bj$g;

    const/4 v1, 0x0

    .line 4
    iput-boolean v1, p0, Les/bj;->e:Z

    .line 5
    iput-object p4, p0, Les/bj;->c:Les/bj$g;

    .line 6
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p4

    const v2, 0x7f0c0166

    .line 7
    invoke-virtual {p4, v2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p4

    iput-object p4, p0, Les/bj;->a:Landroid/view/View;

    .line 8
    invoke-virtual {p0, p4}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    .line 9
    iget-object p4, p0, Les/bj;->a:Landroid/view/View;

    const v0, 0x7f090af4

    invoke-virtual {p4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p4

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f110a2c

    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const v2, 0x7f11027c

    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p4, v0}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    .line 10
    iget-object p4, p0, Les/bj;->a:Landroid/view/View;

    const v0, 0x7f0902b1

    invoke-virtual {p4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p4

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const v3, 0x7f1102d5

    invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p4, v0}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    .line 11
    iget-object p4, p0, Les/bj;->a:Landroid/view/View;

    const v0, 0x7f0901ea

    invoke-virtual {p4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p4

    check-cast p4, Landroid/widget/CheckBox;

    iput-object p4, p0, Les/bj;->d:Landroid/widget/CheckBox;

    if-nez p5, :cond_0

    const/16 p5, 0x8

    .line 12
    invoke-virtual {p4, p5}, Landroid/widget/CheckBox;->setVisibility(I)V

    :cond_0
    const p4, 0x7f1102a1

    const p5, 0x7f110662

    if-eqz p6, :cond_2

    .line 13
    invoke-virtual {p1, p5}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p5

    new-instance p6, Les/bj$a;

    invoke-direct {p6, p0}, Les/bj$a;-><init>(Les/bj;)V

    invoke-virtual {p0, p5, p6}, Lcom/estrongs/android/ui/dialog/q;->setRightButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    if-eqz p7, :cond_1

    const p5, 0x7f110778

    .line 14
    invoke-virtual {p1, p5}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p5

    new-instance p6, Les/bj$b;

    invoke-direct {p6, p0}, Les/bj$b;-><init>(Les/bj;)V

    invoke-virtual {p0, p5, p6}, Lcom/estrongs/android/ui/dialog/q;->setMiddleButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    goto :goto_0

    :cond_1
    const p5, 0x7f110064

    .line 15
    invoke-virtual {p1, p5}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p5

    new-instance p6, Les/bj$c;

    invoke-direct {p6, p0}, Les/bj$c;-><init>(Les/bj;)V

    invoke-virtual {p0, p5, p6}, Lcom/estrongs/android/ui/dialog/q;->setMiddleButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    .line 16
    :goto_0
    invoke-virtual {p1, p4}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    new-instance p4, Les/bj$d;

    invoke-direct {p4, p0}, Les/bj$d;-><init>(Les/bj;)V

    invoke-virtual {p0, p1, p4}, Lcom/estrongs/android/ui/dialog/q;->setLeftButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    goto :goto_1

    .line 17
    :cond_2
    invoke-virtual {p1, p5}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p5

    new-instance p6, Les/bj$e;

    invoke-direct {p6, p0}, Les/bj$e;-><init>(Les/bj;)V

    invoke-virtual {p0, p5, p6}, Lcom/estrongs/android/ui/dialog/q;->setConfirmButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    .line 18
    invoke-virtual {p1, p4}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    new-instance p4, Les/bj$f;

    invoke-direct {p4, p0}, Les/bj$f;-><init>(Les/bj;)V

    invoke-virtual {p0, p1, p4}, Lcom/estrongs/android/ui/dialog/q;->setCancelButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/widget/Button;

    .line 19
    :goto_1
    invoke-virtual {p0, p2, p3}, Les/bj;->a(Lcom/estrongs/fs/g;Lcom/estrongs/fs/g;)V

    .line 20
    invoke-virtual {p0, v1}, Landroid/app/Dialog;->setCancelable(Z)V

    return-void
.end method

.method static synthetic a(Les/bj;I)I
    .locals 0

    .line 1
    iput p1, p0, Les/bj;->b:I

    return p1
.end method

.method public static a(Landroid/view/View;Ljava/lang/String;)V
    .locals 1

    if-nez p0, :cond_0

    return-void

    .line 26
    :cond_0
    instance-of v0, p0, Landroid/widget/TextView;

    if-eqz v0, :cond_1

    .line 27
    check-cast p0, Landroid/widget/TextView;

    invoke-virtual {p0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_1
    return-void
.end method

.method static synthetic a(Les/bj;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Les/bj;->e:Z

    return p1
.end method


# virtual methods
.method public a(Lcom/estrongs/fs/g;Lcom/estrongs/fs/g;)V
    .locals 11

    .line 3
    sget v0, Les/bj;->g:I

    iput v0, p0, Les/bj;->b:I

    .line 4
    invoke-interface {p1}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v0

    invoke-interface {p2}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v2

    sub-long/2addr v0, v2

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/l;->u()Ljava/text/DateFormat;

    move-result-object v2

    .line 6
    invoke-interface {p1}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v3

    .line 7
    invoke-interface {p2}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v4

    .line 8
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->B2(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 9
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    goto :goto_0

    .line 10
    :cond_0
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 11
    :goto_0
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->B2(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 12
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    goto :goto_1

    .line 13
    :cond_1
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 14
    :goto_1
    iget-object v5, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    const v6, 0x7f11043f

    const/4 v7, 0x1

    new-array v7, v7, [Ljava/lang/Object;

    const/4 v8, 0x0

    invoke-interface {p1}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v9

    aput-object v9, v7, v8

    invoke-virtual {v5, v6, v7}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    .line 15
    iget-object v6, p0, Les/bj;->a:Landroid/view/View;

    const v7, 0x7f0907bc

    invoke-virtual {v6, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    invoke-static {v6, v5}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    .line 16
    iget-object v5, p0, Les/bj;->a:Landroid/view/View;

    const v6, 0x7f090af1

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    invoke-static {v5, v3}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    .line 17
    iget-object v3, p0, Les/bj;->a:Landroid/view/View;

    const v5, 0x7f090af2

    invoke-virtual {v3, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    invoke-interface {p1}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v5

    invoke-static {v5, v6}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v5

    invoke-static {v3, v5}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    .line 18
    iget-object v3, p0, Les/bj;->a:Landroid/view/View;

    const v5, 0x7f0902ae

    invoke-virtual {v3, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    invoke-static {v3, v4}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    .line 19
    iget-object v3, p0, Les/bj;->a:Landroid/view/View;

    const v4, 0x7f0902af

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    invoke-interface {p2}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v4

    invoke-static {v4, v5}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    const-string v3, ")"

    const v4, 0x7f110451

    const-string v5, "("

    const-wide/16 v6, 0x0

    const v8, 0x7f0902ac

    const v9, 0x7f090aef

    cmp-long v10, v0, v6

    if-lez v10, :cond_2

    .line 20
    iget-object v0, p0, Les/bj;->a:Landroid/view/View;

    invoke-virtual {v0, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-interface {p1}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v6

    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/text/DateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, p1}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    .line 21
    iget-object p1, p0, Les/bj;->a:Landroid/view/View;

    invoke-virtual {p1, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    invoke-interface {p2}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p2

    invoke-virtual {v2, p2}, Ljava/text/DateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    goto :goto_2

    :cond_2
    cmp-long p2, v0, v6

    if-gez p2, :cond_3

    .line 22
    iget-object p2, p0, Les/bj;->a:Landroid/view/View;

    invoke-virtual {p2, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    invoke-interface {p1}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/text/DateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p2, v0}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    .line 23
    iget-object p2, p0, Les/bj;->a:Landroid/view/View;

    invoke-virtual {p2, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-interface {p1}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v6

    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/text/DateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p2, p1}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    goto :goto_2

    .line 24
    :cond_3
    iget-object p2, p0, Les/bj;->a:Landroid/view/View;

    invoke-virtual {p2, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    invoke-interface {p1}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/text/DateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p2, v0}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    .line 25
    iget-object p2, p0, Les/bj;->a:Landroid/view/View;

    invoke-virtual {p2, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    invoke-interface {p1}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/text/DateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p2, p1}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    :goto_2
    return-void
.end method

.method public dismiss()V
    .locals 3

    .line 1
    iget-boolean v0, p0, Les/bj;->e:Z

    if-nez v0, :cond_0

    .line 2
    sget v0, Les/bj;->f:I

    iput v0, p0, Les/bj;->b:I

    .line 3
    :cond_0
    iget-object v0, p0, Les/bj;->c:Les/bj$g;

    iget v1, p0, Les/bj;->b:I

    iget-object v2, p0, Les/bj;->d:Landroid/widget/CheckBox;

    invoke-virtual {v2}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v2

    invoke-interface {v0, v1, v2}, Les/bj$g;->a(IZ)V

    .line 4
    invoke-super {p0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    return-void
.end method

.method public setMessage(Ljava/lang/CharSequence;)V
    .locals 2

    .line 1
    iget-object v0, p0, Les/bj;->a:Landroid/view/View;

    const v1, 0x7f0907bc

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, p1}, Les/bj;->a(Landroid/view/View;Ljava/lang/String;)V

    return-void
.end method
